<template>
<onekit-page>
<onekit-view onekit-class="container">
	<div is="onekit-template-head" :DATA="`${JSON.stringify({title:'modal'})}`"></div>
	<onekit-view onekit-class="page-body">
		<onekit-view onekit-class="btn-area">
			<onekit-button type="default" @Tap="modalTap">有标题的modal</onekit-button>
			<onekit-button type="default" @Tap="noTitlemodalTap">无标题的modal</onekit-button>
		</onekit-view>
	</onekit-view>
	<div is="onekit-template-foot"></div>
</onekit-view>
</onekit-page></template>
<script>
/* eslint-disable */
import Vue from 'vue';
import onekit_template_0 from '../../../common/head.head.vue';Vue.component('onekit-template-head',onekit_template_0);
import onekit_template_1 from '../../../common/foot.foot.vue';Vue.component('onekit-template-foot',onekit_template_1);
const ONEKIT_JSON= {
  "navigationBarTitleText": "模态弹窗",
  "usingComponents": {
    
  }
};
const ONEKIT_SJS = {
};
import wx from '../../../../weixin2vue/wx.js';
import Macro from '../../../../weixin2vue/Macro.js';
const {getApp,getCurrentPages} = Macro;
import Page from '../../../../weixin2vue/OnekitPage.js';
import Component from '../../../../weixin2vue/OnekitComponent.js';
export default Page(ONEKIT_JSON,[],ONEKIT_SJS,{
    "onShareAppMessage"(){
      return {
        "title":'模态弹窗',
        "path":'packageAPI/pages/modal/modal'
};
    },
    "data":{
        "modalHidden":true,
        "modalHidden2":true
},
    "modalTap"(){
      wx.showModal({
        "title":'弹窗标题',
        "content":'弹窗内容，告知当前状态、信息和解决方法，描述文字尽量控制在三行内',
        "showCancel":false,
        "confirmText":'确定'
});
    },
    "noTitlemodalTap"(){
      wx.showModal({
        "content":'弹窗内容，告知当前状态、信息和解决方法，描述文字尽量控制在三行内',
        "confirmText":'确定',
        "cancelText":'取消'
});
    }
});

</script>
<style 
 lang="css">
</style>